
#include "check_state.h"

typedef struct{
	unsigned int cntlwd;
	unsigned int tarpos;
	unsigned int modper;
	unsigned int DB1;
	unsigned int status;
	unsigned int actpos;
	unsigned int moddis;
	unsigned int DB2;
	unsigned int errcode;
	unsigned int errflo;

}Robot_Aix;


// process data
#define CoolDrivePos0  1, 0
#define CoolDrivePos1  2, 1

#define CoolDrive 0x00000748, 0x0000000a
//offsets for PDO entries

extern Robot_Aix A1,A2,A3,A4;

int config_cooldrive();
int config_qn_noreset();
int config_pp_mode();
int config_PDO();
int remap_qn_pdo(ec_slave_config_t *sc);
int qn_pdo_reg(ec_slave_config_t *sc);
int qn_pdo_reg1(ec_slave_config_t *sc);
typedef struct {
    unsigned short  position;
    unsigned int    vendor_id;
    unsigned int    product_code;
}EL_Slave_t;

extern EL_Slave_t  slaves[16];

int  GetSlavesInfo(EL_Slave_t* , int );

